Improve TOML decoding error messages
authorAlex Crichton <alex@alexcrichton.com>
Fri, 3 Mar 2017 16:12:12 +0000 (08:12 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 8 Mar 2017 19:14:55 +0000 (11:14 -0800)
commitcb53e1b2056a02bd1eb83d926e1cc37e56180368
tree030f7c5f979d3961b44702cbad2896e9b6ea3b21
parenta226b3ca04037e52bfcdc9d21bfeeefb18dab5d5
Improve TOML decoding error messages

Unfortunately while `#[serde(untagged)]` is precisely what we want in terms of
semantics it leaves a little to be desired in terms of error messages. This
commit updates to remove the usage of that attribute in favor of implementing
`Deserialize` directly, which is quite simple in these few cases.

Closes #3790
src/cargo/util/toml.rs
tests/bad-config.rs